package com.whcoding.easypoi.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.lang.reflect.Field;
import java.math.BigDecimal;
import java.util.Date;


/**
 * @author Manager
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
//链式写法
@Accessors(chain = true)
@EqualsAndHashCode
@ToString
public class OrmDeptExcelVO implements Serializable {
	private Long id;
	@Excel(name = "部门ID", width = 20, needMerge = true)
	private Integer deptId;
	@Excel(name = "编码编码", width = 20, needMerge = true)
	private String deptNo;
	@Excel(name = "部门类型", width = 20,replace = {"一级_1", "二级_2", "三级_3"})
	private Integer deptType;
	@Excel(name = "部门名称", width = 20, needMerge = true)
	private String deptName;
	@Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	@Excel(name = "修改日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date updateTime;

	@Excel(name = "金额", width = 20, needMerge = true)
	private BigDecimal deptPerf;
	private Integer isValidFlag;
	@Excel(name = "短名称", width = 20, needMerge = true)
	private String shortName;
	private String remark;
}
